package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 计划调整记录对象 pro_adjust
 *
 * @author ruoyi
 * @date 2024-10-08
 */
public class ProAdjust extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 计划id */
    private Long adjustId;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applyTime;

    /** 申请人 */
    @Excel(name = "申请人")
    private String applyUser;

    /** 调整时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "调整时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date adjustTime;

    /** 调整原因 */
    @Excel(name = "调整原因")
    private String adjustReason;

    /** 后续计划是否自动调整 */
    @Excel(name = "后续计划是否自动调整")
    private Long plan;

    /** 审批人 */
    @Excel(name = "审批人")
    private Long userId;

    /** 审批意见 */
    @Excel(name = "审批意见")
    private String approOpinion;

    public void setAdjustId(Long adjustId)
    {
        this.adjustId = adjustId;
    }

    public Long getAdjustId()
    {
        return adjustId;
    }
    public void setApplyTime(Date applyTime)
    {
        this.applyTime = applyTime;
    }

    public Date getApplyTime()
    {
        return applyTime;
    }
    public void setApplyUser(String applyUser)
    {
        this.applyUser = applyUser;
    }

    public String getApplyUser()
    {
        return applyUser;
    }
    public void setAdjustTime(Date adjustTime)
    {
        this.adjustTime = adjustTime;
    }

    public Date getAdjustTime()
    {
        return adjustTime;
    }
    public void setAdjustReason(String adjustReason)
    {
        this.adjustReason = adjustReason;
    }

    public String getAdjustReason()
    {
        return adjustReason;
    }
    public void setPlan(Long plan)
    {
        this.plan = plan;
    }

    public Long getPlan()
    {
        return plan;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setApproOpinion(String approOpinion)
    {
        this.approOpinion = approOpinion;
    }

    public String getApproOpinion()
    {
        return approOpinion;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("adjustId", getAdjustId())
            .append("applyTime", getApplyTime())
            .append("applyUser", getApplyUser())
            .append("adjustTime", getAdjustTime())
            .append("adjustReason", getAdjustReason())
            .append("plan", getPlan())
            .append("userId", getUserId())
            .append("approOpinion", getApproOpinion())
            .toString();
    }
}
